﻿<%@ Page Language="C#" MasterPageFile="~/Template/USER.Master" AutoEventWireup="true" CodeBehind="sanphamtheoloaisanpham.aspx.cs" Inherits="BTN04.USER.sanphamtheoloaisanpham" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphMenuTrai" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cplContent" runat="server">
<div id="title_content">
    <div style="width:280px; float:left;">
         <div id="title_left_content">
        </div>
        <div id="title_mid_content"> 
            <asp:Label ID="lblLoaiSanPham" runat="server" Text=">> SẢN PHẨM"></asp:Label>
        </div>
        <div id="title_right_content">
        </div>
    </div>
    <div style="float:left; text-align:right; padding-right:25px; padding-top:5px; color:#FFEF84; width:310px;">
        Xem thêm <img src="../Images/dot02.gif" />                                        
    </div>
       
    </div>
    <div id="mid_content">           
       
        <asp:Repeater ID="Repeater2" runat="server" 
            DataSourceID="SanPhamObjectDataSource1">
            <HeaderTemplate>
                <ul id="ul">
            </HeaderTemplate>
            <ItemTemplate>
                <li id="li">
                    <div style="clear:both; display:block;">
                        <div id="top_sanpham">
                        </div>
                        <div id="mid_sanpham">
                             <div style="width:172px; margin-left:10px; margin-left:10px; padding-top:5px;">
                                 <a href="chitietsanpham.aspx?idSanPham=<%# Eval("MaSanPham")%>&idMaLoaiSanPham=<%# Eval("MaLoaiSanPham")%>">
                                 <img height="150px" 
                                     src="../<%# Eval("Hinh") %>" width="172px" /></a>
                            </div>
                            <div id="ten_sanpham" style="font-size:larger;">
                                <a class="link" href="chitietsanpham.aspx?idSanPham=<%# Eval("MaSanPham")%>&idMaLoaiSanPham=<%# Eval("MaLoaiSanPham")%>">
                                     <%# Eval("TenSanPham")%></a>
                            </div>
                            <div id="gia_sanpham">Giá : <%# Eval("GiaBan") %>
                            </div>
                            <div style="font-weight :bold; display:inline-table; width:172px;"> 
                                <div style="width:60%; float:left; text-align:center;"> 
                                 <a class="datmua_chitiet" href ="giohang.aspx?idSanPham=<%# Eval("MaSanPham")%>">
                                        Đặt mua
                                    </a>
                                </div>
                                <div style="width:40%; float:left; text-align:center;"> 
                                    <a class="datmua_chitiet"  href ="chitietsanpham.aspx?idSanPham=<%# Eval("MaSanPham")%>&idMaLoaiSanPham=<%# Eval("MaLoaiSanPham")%>">
                                       Chi Tiết
                                    </a>
                                </div>
                                   
                            </div>
                        <div id="bottom_sanpham">
                        </div>
                    </div>
                </li>  
            </ItemTemplate>
            <FooterTemplate>
             </ul>
            </FooterTemplate>
        </asp:Repeater>
        <asp:ObjectDataSource ID="SanPhamObjectDataSource1" runat="server" 
            SelectMethod="DanhSachSanPhamTheoLoai" TypeName="BTN04.BUS.SanPhamBUS">
            <SelectParameters>
                <asp:QueryStringParameter DefaultValue="1" Name="_maLoai" QueryStringField="id" 
                    Type="Int32" />
            </SelectParameters>
        </asp:ObjectDataSource>
       
    </div>
    <div id="bottom_content">
    </div>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="cphMEnuPhai" runat="server">
</asp:Content>
